package spring.model;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import org.springframework.beans.factory.support.MethodReplacer;
import spring.model.Printer;

public class PrinterReplacer implements MethodReplacer {

    @Override
    public Object reimplement(Object arg0, Method arg1, Object[] arg2) throws InvocationTargetException, IllegalAccessException {
        System.out.println("Print Replacer");
        arg1.invoke(new Printer(), "hehe");
        return null;
    }

}
